/**
 * Created by johwa on 2014/10/8.
 */
var setting = require('./setting');
var MongoClient = require('mongodb').MongoClient;
var Db = require('mongodb').Db;
var Connection = require('mongodb').Connection;
var Server = require('mongodb').Server;

//module.exports = MongoClient.connect(setting.host, function(err, db) {});
module.exports = new Db(setting.db,new Server(setting.host, Connection.DEFAULT_PORT,{}));